//let x : string |number
let x = Math.random() < 0.5 ? 10 : 'hello world'

// let x : number
x = 1
console.log(x);

x = 'goodbye!'
console.log(x);

x = true
